We try to position the boxpointer centered above the calendar,
which swaps position with the events list when using a RTL locale,
so make the menu alignment dependent on the text direction.
https://bugzilla.gnome.org/show_bug.cgi?id=642721
//this._eventSource = new Calendar.FakeEventSource();
this._eventSource = new Calendar.EvolutionEventSource();
- PanelMenu.Button.prototype._init.call(this, 0.25);
+ let menuAlignment = 0.25;
+ if (St.Widget.get_default_direction() == St.TextDirection.RTL)
+ menuAlignment = 1.0 - menuAlignment;
+ PanelMenu.Button.prototype._init.call(this, menuAlignment);
this._clock = new St.Label();
this.actor.set_child(this._clock);